package org.answer.dao;

import com.github.pagehelper.Page;
import org.answer.pojo.Permission;
import org.answer.pojo.Role;

import java.util.List;
import java.util.List;
import java.util.Set;

public interface PermissionDao {
    Set<Permission> findByRoleId(Integer roleId);

    List<Permission> findAll();



    Page<Permission> selectByCondition(String queryString);

    Integer update(Permission permission);

    void deleteById(Integer id);

    void add(Permission permission);

    void deleteAssocication(Integer id);


}
